﻿@{
    ViewBag.Title = "Mileage Stats Sign In";
}
<div id="scrollable">
    <div>
        <div id="login" class="framed article">
            <div>
                <h1>
                    <img src="@Url.Content("~/Content/application-openid.png")" alt="OpenID Icon" />
                    Sign In / Register
                </h1>
                <p>
                    You can register or sign in using your existing OpenId provider. If this is your
                    first time, we'll create a new account for you!
                </p>
                @if (TempData["Message"] != null)
                { 
                    <p class="warning">@TempData["Message"]</p>
                }
                <div class="actions">
                    <div class="external">
                        <a href="@Url.Action("SignInWithProvider", "Auth", new { providerUrl = "http://www.myopenid.com" })" class="openid-provider button">
                            <img src="@Url.Content("~/Content/myopenid.png")" alt="My OpenID" /></a>&ensp;
                        <a href="@Url.Action("SignInWithProvider", "Auth", new { providerUrl = "http://www.yahoo.com" })" class="openid-provider button">
                            <img src="@Url.Content("~/Content/yahoo.png")" alt="Yahoo" /></a>
                    </div>
                    @using (Html.BeginForm("SignInWithProvider", "Auth"))
                    {    
                        <label>
                            or OpenId URL:</label><br />
                        <div class="text">
                            @Html.TextBox("providerUrl", null, new { maxlength = 200 })
                        </div>
                        <button type="submit">
                            <img src="@Url.Content("~/Content/application-signin-text.png")" title="Sign In or Register" alt="Sign In or Register" />
                        </button>
                    }
                </div>
            </div>
        </div>
    </div>
</div>